load("//tools:defaults.bzl", "ts_library")

package(default_visibility = ["//visibility:public"])

ts_library(
    name = "test_snippets_util_lib",
    srcs = [
        "util.ts",
    ],
    module_name = "@tensorflow/tfjs-core/dist/scripts/test_snippets",
    deps = [
        "@npm//@types/node",
        "@npm//typescript",
    ],
)

ts_library(
    name = "test_snippets_lib",
    testonly = True,
    srcs = [
        "test_snippets.ts",
    ],
    module_name = "@tensorflow/tfjs-core/dist/scripts/test_snippets",
    deps = [
        ":test_snippets_util_lib",
        "//tfjs-backend-cpu/src:tfjs-backend-cpu_lib",
        "//tfjs-core/src:tfjs-core_lib",
        "//tfjs-core/src:tfjs-core_src_lib",
        "//tfjs-core/src:tfjs-core_test_lib",
    ],
)
